package com.fengke.dao.division;

import java.sql.SQLException;
import java.util.List;

import com.fengke.dao.model.DepartureModel;
import com.fengke.dao.model.DestinationModel;

public interface DivisionManager {

	List<DepartureModel> researchDepartureModelList(DepartureModel departureModel, int offset, int limit) throws SQLException;

	List<DestinationModel> researchDestinationModelList(DestinationModel destinationModel, int offset, int limit) throws SQLException;

	Long createDeparture(DepartureModel departureModel) throws SQLException;

	void updateDepartureById(DepartureModel departureModel) throws SQLException;

	Long createDestination(DestinationModel destinationModel) throws SQLException;

	void updateDestinationById(DestinationModel destinationModel) throws SQLException;

	void deleteDepartureByIds(List<String> list) throws SQLException;

	void deleteDestinationByIds(List<String> list) throws SQLException;

}
